.class Lcom/example/m6wmr/LoginActivity$24;
.super Ljava/lang/Thread;
.source "LoginActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/LoginActivity;->getappid()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/LoginActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/LoginActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/LoginActivity$24;->this$0:Lcom/example/m6wmr/LoginActivity;

    .line 1239
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 9

    .prologue
    .line 1241
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 1243
    new-instance v6, Ljava/lang/StringBuilder;

    iget-object v7, p0, Lcom/example/m6wmr/LoginActivity$24;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v7, v7, Lcom/example/m6wmr/LoginActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "/index.php?ctrl=app&action=wxappset&datatype=json"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 1246
    .local v5, "url":Ljava/lang/String;
    const-string v6, "Loginactivity"

    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, "login() "

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 1247
    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$24;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v6, v6, Lcom/example/m6wmr/LoginActivity;->m:Lmyapp/MyApp;

    invoke-static {v5, v6}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v4

    .line 1248
    .local v4, "str":Ljava/lang/String;
    const-string v6, "Loginactivity"

    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, "data() "

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1251
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 1254
    .local v2, "msg":Landroid/os/Message;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v4}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 1255
    .local v1, "json":Lorg/json/JSONObject;
    const-string v6, "error"

    invoke-virtual {v1, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "true"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 1258
    const-string v6, "msg"

    invoke-virtual {v1, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1259
    const/4 v6, 0x1

    iput v6, v2, Landroid/os/Message;->arg1:I

    .line 1260
    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$24;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v6}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v6

    invoke-virtual {v6, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1287
    .end local v1    # "json":Lorg/json/JSONObject;
    :cond_0
    :goto_0
    return-void

    .line 1263
    .restart local v1    # "json":Lorg/json/JSONObject;
    :cond_1
    const-string v6, "msg"

    invoke-virtual {v1, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v7, ""

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 1265
    const/16 v6, 0x15

    iput v6, v2, Landroid/os/Message;->arg1:I

    .line 1266
    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$24;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v6}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v6

    invoke-virtual {v6, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 1281
    .end local v1    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 1282
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 1283
    const/4 v6, 0x4

    iput v6, v2, Landroid/os/Message;->arg1:I

    .line 1284
    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$24;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v6}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v6

    invoke-virtual {v6, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 1271
    .end local v0    # "e":Lorg/json/JSONException;
    .restart local v1    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    const-string v6, "msg"

    invoke-virtual {v1, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 1272
    .local v3, "sppString":Ljava/lang/String;
    if-eqz v3, :cond_0

    const-string v6, ""

    invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_0

    .line 1273
    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$24;->this$0:Lcom/example/m6wmr/LoginActivity;

    invoke-static {v6, v3}, Lcom/example/m6wmr/LoginActivity;->access$35(Lcom/example/m6wmr/LoginActivity;Ljava/lang/String;)V

    .line 1274
    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$24;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->appid:Ljava/lang/String;
    invoke-static {v6}, Lcom/example/m6wmr/LoginActivity;->access$20(Lcom/example/m6wmr/LoginActivity;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1275
    const/16 v6, 0x16

    iput v6, v2, Landroid/os/Message;->arg1:I

    .line 1276
    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$24;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v6}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v6

    invoke-virtual {v6, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 1292
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1293
    monitor-exit p0

    return-void

    .line 1292
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
